from fastapi import UploadFile as File, APIRouter
from app.services.upload import UploadFile
router = APIRouter()


@router.post('/upload_file')
async def upload_file(file: File):
    return await UploadFile(file).createFile()
